home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / about.h next >
Encoding:
C/C++ Source or Header  |  2008-09-08  |  1.8 KB  |  83 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef ABOUT_H
  8. #define ABOUT_H
  9.  
  10. #include <QDialog>
  11. #include <QVBoxLayout>
  12. #include <QHBoxLayout>
  13.  
  14. #include "scribusapi.h"
  15.  
  16. class ScTextBrowser;
  17. class QLabel;
  18. class QWidget;
  19. class QTabWidget;
  20. class QPushButton;
  21. class QShowEvent;
  22.  
  23.  
  24. class SCRIBUS_API About : public QDialog
  25.         Q_OBJECT
  26.  
  27. public:
  28.  
  29.     typedef enum
  30.     {
  31.         Default = 0,
  32.         CheckUpdates = 1
  33.     } AboutMode;
  34.  
  35.     About( QWidget* parent, AboutMode mode = About::Default );
  36.     ~About() {};
  37.     
  38. protected:
  39.     QLabel* pixmapLabel1;
  40.     QLabel* buildID;
  41.     QPushButton* okButton;
  42.     QPushButton* checkForUpdateButton;
  43.     QTabWidget* tabWidget2;
  44.     QWidget* tab;
  45.     QWidget* tab_2;
  46.     QWidget* tab_3;
  47.     QWidget* tab_4;
  48.     QWidget* tab_5;
  49.     QWidget* tab_Licence;
  50.     ScTextBrowser* textView1;
  51.     ScTextBrowser* textView2;
  52.     ScTextBrowser* textView4;
  53.     ScTextBrowser* textView5;
  54.     ScTextBrowser* textViewLicence;
  55.     QVBoxLayout* aboutLayout;
  56.     QVBoxLayout* updateLayout;
  57.     QVBoxLayout* licenceLayout;
  58.     QHBoxLayout* tabLayout;
  59.     QVBoxLayout* tabLayout1;
  60.     QHBoxLayout* tabLayout_2;
  61.     QHBoxLayout* tabLayout_4;
  62.     QHBoxLayout* layout2;
  63.  
  64.     bool         m_firstShow;
  65.     AboutMode    m_mode;
  66.     virtual void showEvent ( QShowEvent * event ); 
  67.     QString trAuthorTitle(QString title);
  68.     QString trTranslationTitle(QString title);
  69.     QString trLinksTitle(QString title);
  70.     QString parseAuthorFile(QString fileName);
  71.     QString parseTranslationFile(QString fileName);
  72.     QString parseLinksFile(QString fileName);
  73.  
  74. protected slots:
  75.     void runUpdateCheck();
  76.  
  77. public slots:
  78.     virtual void setVisible (bool visible); 
  79. };
  80.  
  81. #endif // ABOUT_H
  82.